package com.gcloud.core.property;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gcloud.controller.novnc")
public class noVncProp {
    /*
    * Environment env = (Environment) SpringUtil.getBean("environment");
        tokenDir = env.getProperty("vnc.novnc.tokendir", "/var/log/gcloud/") + "/";
        websockifyHost = env.getProperty("vnc.novnc.websockify.ip", "localhost");
        websockifyPort = env.getProperty("vnc.novnc.websockify.port", "6080");
    * */

    @Value("${gcloud.controller.novnc.tokenDir}")
    public String tokenDir;

    @Value("${gcloud.controller.novnc.websockifyHost}")
    public String websockifyHost;

    @Value(("${gcloud.controller.novnc.websockifyPort}"))
    public String websockifyPort;

}
